import type { ChartStrategy } from '@/hooks/useECharts'

export class LineOptionStrategy implements ChartStrategy {
  getOptions() {
    return {
      xAxis: {
        type: 'category',
        data: ['1', '2', '3', '4', '5', '6', '7']
      },
      yAxis: {
        type: 'value'
      },
      series: [
        {
          data: ['2', '4', '6', '3', '8', '1', '5'],
          type: 'line'
        }
      ]
    } as echarts.EChartsOption
  }
}
